package com.ruoyi.backend.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 救援任务对象 rescue_task
 *
 * @author 王冰冰
 * @date 2025-03-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RescueTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 救援任务ID
     */
    @Excel(name = "救援任务ID")
    private Long rescueId;

    /**
     * 救援类型（救援类型字典表）
     */
    @Excel(name = "救援类型", readConverterExp = "救=援类型字典表")
    private Long rescueType;

    /**
     * 救援位置
     */
    @Excel(name = "救援位置")
    private String rescueLocation;

    /**
     * 终点位置
     */
    @Excel(name = "终点位置")
    private String destination;

    /**
     * 车辆ID
     */
    private Long vehicleId;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 扩展字段1
     */
    private String ext1;

    /**
     * 扩展字段2
     */
    private String ext2;

    /**
     * 扩展字段3
     */
    private String ext3;

    /**
     * 扩展字段4
     */
    private String ext4;

    /**
     * 扩展字段5
     */
    private String ext5;

    /**
     * 申请开始时间 筛选用
     */
    private String beginApplyTime;

    /**
     * 申请结束时间 筛选用
     */
    private String endApplyTime;

    /**
     * 关联会员
     */
    private Member member;

    /**
     * 关联车辆
     */
    private Vehicle vehicle;
}